﻿using System;

namespace _5E.WebInfrastructure.UserControl
{
    [AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
    public class UserControlRenderingPropertyAttribute : Attribute
    {
        private string m_Key = null;
        public string Key
        {
            get { return m_Key; }
            set { m_Key = value; }
        }

        private UserControlRenderingSource m_Source = UserControlRenderingSource.QueryString;
        public UserControlRenderingSource Source
        {
            get { return m_Source; }
            set { m_Source = value; }
        }

        public UserControlRenderingPropertyAttribute(string key)
        {
            Key = key;
        }
    }
}
